package main

import (
	"bufio"
	"os"
	"fmt"
)

/*
   @Time : 2018/8/29 13:47 
   @Author : ff

   带缓冲区的读写
*/
var inputReader *bufio.Reader
var in string
var err error


func main() {
	inputReader = bufio.NewReader(os.Stdin)
	fmt.Println("Please enter some input: ")
	in, err = inputReader.ReadString('\n')
	if err == nil {
		fmt.Printf("The input was: %s\n", in)
	}
}
